package qss.bt.es.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import qss.bt.es.manager.ProductManager;
import qss.bt.es.manager.UserManager;

@RestController
public class UserController {

	@GetMapping("user")
	public String getUser() {
		return "zk";
	}

	@GetMapping("product")
	public String getProduct() {
		return "zkProduct111111111111";
	}

	@Autowired
	private ProductManager productManager;

	@Autowired
	private UserManager userManager;

	@GetMapping("users")
	public String user() {
		return userManager.getUser();
	}

	@GetMapping("products")
	public String product() {
		return productManager.getProduct();
	}
}
